#ifndef _PLAY_WORKER_H
#define _PLAY_WORKER_H

#include <nan.h>
#include "player.h"
using namespace v8;

class PlayWorker : public Nan::AsyncWorker
{
public:
  PlayWorker(Player* player,Nan::Callback *callback) : Nan::AsyncWorker(callback),mPlayer(player)
  {

  }
  void Execute();
  void Destroy();

private:
  Player* mPlayer;
};
#endif